package min.chapter.three;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class BeanOptionalAquisition {
	public static void main(String[] args) {
 ApplicationContext context = new FileSystemXmlApplicationContext("src/min/chapter/three/BeanOptional.xml");
 BeanOptionalService service1 = (BeanOptionalService) context.getBean("service");
 BeanOptionalService service2 = (BeanOptionalService) context.getBean("service");
 System.out.println("service1 : " + service1);
 System.out.println("service2 : " + service2);
 service1.serviceSed();
 }
}